package me.zhengjie.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 
 * @TableName iws_outbound_order_history
 */
@Data
@TableName(value ="iws_outbound_order_history")
public class OutboundOrderHistory {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String outboundOrderNo;

    /**
     * 
     */
    private Integer status;

    /**
     * 
     */
    private Date outboundTime;

    /**
     * 
     */
    private Date finishTime;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String createName;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private String updateName;

    /**
     * 
     */
    private Date requireTime;

    /**
     * 
     */
    private String destination;

    /**
     * 
     */
    private String outboundType;

    /**
     * 
     */
    private String outboundStore;

    /**
     * 
     */
    private String startName;

    /**
     * 
     */
    private Integer outboundPolicy;

    @TableField(exist = false)
    private Integer page;

    @TableField(exist = false)
    private Integer size;



    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getOutboundOrderNo() {
        return outboundOrderNo;
    }

    /**
     * 
     */
    public void setOutboundOrderNo(String outboundOrderNo) {
        this.outboundOrderNo = outboundOrderNo;
    }

    /**
     * 
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 
     */
    public Date getOutboundTime() {
        return outboundTime;
    }

    /**
     * 
     */
    public void setOutboundTime(Date outboundTime) {
        this.outboundTime = outboundTime;
    }

    /**
     * 
     */
    public Date getFinishTime() {
        return finishTime;
    }

    /**
     * 
     */
    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public String getCreateName() {
        return createName;
    }

    /**
     * 
     */
    public void setCreateName(String createName) {
        this.createName = createName;
    }

    /**
     * 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 
     */
    public String getUpdateName() {
        return updateName;
    }

    /**
     * 
     */
    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    /**
     * 
     */
    public Date getRequireTime() {
        return requireTime;
    }

    /**
     * 
     */
    public void setRequireTime(Date requireTime) {
        this.requireTime = requireTime;
    }

    /**
     * 
     */
    public String getDestination() {
        return destination;
    }

    /**
     * 
     */
    public void setDestination(String destination) {
        this.destination = destination;
    }

    /**
     * 
     */
    public String getOutboundType() {
        return outboundType;
    }

    /**
     * 
     */
    public void setOutboundType(String outboundType) {
        this.outboundType = outboundType;
    }

    /**
     * 
     */
    public String getOutboundStore() {
        return outboundStore;
    }

    /**
     * 
     */
    public void setOutboundStore(String outboundStore) {
        this.outboundStore = outboundStore;
    }

    /**
     * 
     */
    public Integer getOutboundPolicy() {
        return outboundPolicy;
    }

    /**
     * 
     */
    public void setOutboundPolicy(Integer outboundPolicy) {
        this.outboundPolicy = outboundPolicy;
    }

    /**
     * 
     */
    public String getStartName() {
        return startName;
    }

    /**
     * 
     */
    public void setStartName(String startName) {
        this.startName = startName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OutboundOrderHistory other = (OutboundOrderHistory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOutboundOrderNo() == null ? other.getOutboundOrderNo() == null : this.getOutboundOrderNo().equals(other.getOutboundOrderNo()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getOutboundTime() == null ? other.getOutboundTime() == null : this.getOutboundTime().equals(other.getOutboundTime()))
            && (this.getFinishTime() == null ? other.getFinishTime() == null : this.getFinishTime().equals(other.getFinishTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateName() == null ? other.getCreateName() == null : this.getCreateName().equals(other.getCreateName()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpdateName() == null ? other.getUpdateName() == null : this.getUpdateName().equals(other.getUpdateName()))
            && (this.getRequireTime() == null ? other.getRequireTime() == null : this.getRequireTime().equals(other.getRequireTime()))
            && (this.getDestination() == null ? other.getDestination() == null : this.getDestination().equals(other.getDestination()))
            && (this.getOutboundType() == null ? other.getOutboundType() == null : this.getOutboundType().equals(other.getOutboundType()))
            && (this.getOutboundStore() == null ? other.getOutboundStore() == null : this.getOutboundStore().equals(other.getOutboundStore()))
            && (this.getOutboundPolicy() == null ? other.getOutboundPolicy() == null : this.getOutboundPolicy().equals(other.getOutboundPolicy()))
            && (this.getStartName() == null ? other.getStartName() == null : this.getStartName().equals(other.getStartName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOutboundOrderNo() == null) ? 0 : getOutboundOrderNo().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getOutboundTime() == null) ? 0 : getOutboundTime().hashCode());
        result = prime * result + ((getFinishTime() == null) ? 0 : getFinishTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateName() == null) ? 0 : getCreateName().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpdateName() == null) ? 0 : getUpdateName().hashCode());
        result = prime * result + ((getRequireTime() == null) ? 0 : getRequireTime().hashCode());
        result = prime * result + ((getDestination() == null) ? 0 : getDestination().hashCode());
        result = prime * result + ((getOutboundType() == null) ? 0 : getOutboundType().hashCode());
        result = prime * result + ((getOutboundStore() == null) ? 0 : getOutboundStore().hashCode());
        result = prime * result + ((getOutboundPolicy() == null) ? 0 : getOutboundPolicy().hashCode());
        result = prime * result + ((getStartName() == null) ? 0 : getStartName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", outboundOrderNo=").append(outboundOrderNo);
        sb.append(", status=").append(status);
        sb.append(", outboundTime=").append(outboundTime);
        sb.append(", finishTime=").append(finishTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", createName=").append(createName);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateName=").append(updateName);
        sb.append(", requireTime=").append(requireTime);
        sb.append(", destination=").append(destination);
        sb.append(", outboundType=").append(outboundType);
        sb.append(", outboundStore=").append(outboundStore);
        sb.append(", outboundPolicy=").append(outboundPolicy);
        sb.append(", startName=").append(startName);
        sb.append("]");
        return sb.toString();
    }
}